package com.payment.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "payment")
public interface PaymentHystrixClient {

    @RequestMapping("hystrix/success")
    String success();

    @RequestMapping("hystrix/timeout")
    String timeout(@RequestParam(name = "seconds") Integer seconds);
}
